export interface ResponseData {
    code: number | string,
    msg: string,
    result: number
}

// 分页器接口 参数 ts数据类型
export interface CommodityFormData {
    currentPage: number,
    keyword?: string,
    pageSize: number,
    status?: number,
    type?: number | string
}
// 一条扶贫商品数据的ts
export interface Commodity {
    id?: string | number,
    productImg: string,
    productName: string,
    description: string,
    price: number | string,
    stock: number | string,
    saleNum?: number,
    updatedDt?: string,
    updatedBy?: string,
    createdDt?: string,
    createdBy?: string,
    deleted?: string
}
// 所有扶贫商品信息的ts数据类型
export type AllCommodity = Commodity[]

// 分页接口返回数据 ts数据类型
export interface CommodityResponseData extends ResponseData {
    data: {
        pageSize: number,
        currentPage: number,
        totalPage: number,
        totals: number,
        list: AllCommodity[]
    }
}